<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${cmsSlide.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">标题：</label>
								<div class="col-sm-8">
									<input id="title" name="title" th:value="${cmsSlide.title}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">图片类型：</label>
								<div class="col-sm-8">
									<select id = "type" name="type" style="width: 80%;height: 30px">
										<option value="0" th:selected="${cmsSlide.type==0}">首页轮播图</option>
										<option value="1" th:selected="${cmsSlide.type==1}">招募供应商图</option>
										<option value="2" th:selected="${cmsSlide.type==2}">我的权益图</option>

									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">图片：</label>
								<div class="col-sm-8">
									<div id="file_upload">
									</div>
									<div id="logo_img" style="padding: 5px;">
										<img th:src="${cmsSlide.imgUrl}" style='height: 60px;width: 60px'>
										<i class="fa fa-close" onclick="$('#imgUrl').val('');$('#logo_img').html('');"></i>

									</div>
									<input type="hidden" id="imgUrl" name="imgUrl" th:value="${cmsSlide.imgUrl}" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">跳转类型：</label>
								<div class="col-sm-8">
									<!--<input id="status" name="status" class="form-control" type="text">-->
									<label class="radio-inline"> <input th:checked="${cmsSlide.mode==0}" type="radio" name="mode" value="0" />
										跳商品
									</label>
									<!--<label class="radio-inline"> <input th:checked="${cmsSlide.mode==1}" type="radio" name = "mode" value="1" />
										跳链接
									</label>-->
									<label class="radio-inline"> <input th:checked="${cmsSlide.mode==2}" type="radio" name = "mode" value="2" />
										不跳
									</label>
								</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">跳转链接：</label>
								<div class="col-sm-8">
									<input id="linkUrl" name="linkUrl" th:value="${cmsSlide.linkUrl}" class="form-control" type="text">
								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">跳转商品：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择商品--" name="goodsId" id="goodsId"
											class="form-control chosen-select" tabindex="2">
										<option value="">-- 选择商品 --</option>
										<option th:each="goods : ${goodsList}"
												th:value="${goods.id}"
												th:text="${goods.name}"
												th:selected="${goods.id==cmsSlide.goodsId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">显示状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input
											th:field="*{cmsSlide.status}" type="radio" name="status" value="0" />
										显示
									</label> <label class="radio-inline"> <input
										th:field="*{cmsSlide.status}" type="radio" name="status" value="1" />
									隐藏
								</label>
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/layui.js"></script>

	<script type="text/javascript" src="/js/appjs/wx/cmsSlide/edit.js">
	</script>
</body>
</html>
